package smartterracedfieldsolution.smartteracedfieldsolution.service.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import smartterracedfieldsolution.smartteracedfieldsolution.pojo.entity.User;

@Mapper
public interface UserMapper extends BaseMapper<User> {

    User selectByUserName(String username);

    boolean existsByUserName(@Param("username") String username);

    boolean existsByPhone(@Param("phone") String phone);

    boolean existsByFullName(@Param("fullName") String fullName);
}
